/*
 * CalibrationArea.c
 *
 *  Created on: 2014-3-10
 *      Author: Mahome
 */
#include "BSW_Include.h"

#define  CMD_DBG
char SoftwareVersion[] = "Appv17.06.14r2\r\n";
//#define NewProtocalDebug
/*************************配置IP地址和端口***************************/
#ifdef NewProtocalDebug

char *IP_Port = "\r\nAT+TCPCONNECT=\"60.28.24.214\",50091\r\n";
#endif
#ifndef NewProtocalDebug
//char IP_Port[40] = "\r\nAT+TCPCONNECT=\"123.57.181.48\",31105\r\n";
//char IP_Port[40] = "\r\nAT+TCPCONNECT=\"123.57.210.236\",31101\r\n";
char IP_Port[40] = "\r\nAT+TCPCONNECT=\"101.200.187.50\",6667\r";//30012
//char IP_Port[40] = "\r\nAT+TCPCONNECT=\"123.56.29.254\",31103\r\n";
//char IP_Port[40] = "\r\nAT+TCPCO NNECT=\"60.28.24.214\",50090\r\n";
#endif

/*************************CAN消息体配置*****************************/
const CAN_BRstr CAN_BR	=
{
	_250kbps,				//Baud rate of Nod 0
	_250kbps,				//Baud rate of Nod 1
};



ubyte CANRxData[60][8];		//用于存放对应的CAN消息

const MOConfig CH1_MO[30]=
{
	{MoEnable,ExtendID,Byte_8,0x18010027},	//Mo00
	{MoEnable,ExtendID,Byte_8,0x1C01D0D2},	//Mo01
	{MoEnable,ExtendID,Byte_8,0x1C02D0D2},	//Mo02
	{MoEnable,ExtendID,Byte_8,0x1C03D0D2},	//Mo03
	{MoEnable,ExtendID,Byte_8,0x1C04D0D2},	//Mo04
	{MoEnable,ExtendID,Byte_8,0x1C05D0D2},	//Mo05
	{MoEnable,ExtendID,Byte_8,0x1C06D0D2},	//Mo06
	{MoEnable,ExtendID,Byte_8,0x18FFDD17},	//Mo07
	{MoEnable,ExtendID,Byte_8,0x18FEDD17},	//Mo08
	{MoEnable,ExtendID,Byte_8,0x1423D0D2},	//Mo09
	{MoEnable,ExtendID,Byte_8,0x18FF2DF3},	//Mo10
	{MoEnable,ExtendID,Byte_8,0x18F15AF3},	//Mo11
	{MoEnable,ExtendID,Byte_8,0x0C0117A7},	//Mo12
	{MoEnable,ExtendID,Byte_8,0x0CFFEDEF},	//Mo13
	{MoEnable,ExtendID,Byte_8,0x0CFFEBEF},	//Mo14
	{MoEnable,ExtendID,Byte_8,0x18FFECEF},	//Mo15
	{MoEnable,ExtendID,Byte_8,0x1813D0D2},	//Mo16
	{MoEnable,ExtendID,Byte_8,0x1814D0D2},	//Mo17
	{MoEnable,ExtendID,Byte_8,0x0C1FD0D2},	//Mo18
	{MoEnable,ExtendID,Byte_8,0x1825D0D2},	//Mo19
	{MoEnable,ExtendID,Byte_8,0x1C15D0D2},	//Mo20
	{MoEnable,ExtendID,Byte_8,0x1C64D0D2},	//Mo21
	{MoDisable,ExtendID,Byte_8,0x1813F489},	//Mo22
	{MoDisable,ExtendID,Byte_8,0x1814F489},	//Mo23
	{MoDisable,ExtendID,Byte_8,0x1815F489},	//Mo24
	{MoDisable,ExtendID,Byte_8,0x1802D0D7},	//Mo25
	{MoDisable,ExtendID,Byte_8,0x1803D0D7},	//Mo26
	{MoDisable,ExtendID,Byte_8,0x1804D0D7},	//Mo27
	{MoDisable,ExtendID,Byte_8,0x1805D0D7},	//Mo28
	{MoDisable,ExtendID,Byte_8,0x1806D0D7},	//Mo29
//	{MoDisable,ExtendID,Byte_8,0x18EA001C},	//Mo30
};

const MOConfig CH2_MO[30]=
{
	{MoDisable,ExtendID,Byte_8,0x18FFA79C},	//Mo30
	{MoDisable,ExtendID,Byte_8,0x0CF00400},	//Mo31
	{MoDisable,ExtendID,Byte_8,0x18FEF200},	//Mo32
	{MoDisable,ExtendID,Byte_8,0x0C04999C},	//Mo33
	{MoDisable,ExtendID,Byte_8,0x0C049B9C},	//Mo34
	{MoDisable,ExtendID,Byte_8,0x18FFF4F4},	//Mo35
	{MoDisable,ExtendID,Byte_8,0x140F9C9B},	//Mo36
	{MoDisable,ExtendID,Byte_8,0x0C0E9C9B},	//Mo37
	{MoDisable,ExtendID,Byte_8,0x0CFD0544},	//Mo38
	{MoDisable,ExtendID,Byte_8,0x0CFD054A},	//Mo39
	{MoDisable,ExtendID,Byte_8,0x14109C9B},	//Mo40
	{MoDisable,ExtendID,Byte_8,0x1806989C},	//Mo41
	{MoDisable,ExtendID,Byte_8,0x14209C99},	//Mo42
	{MoDisable,ExtendID,Byte_8,0x18C1EFF3},	//Mo43
	{MoDisable,ExtendID,Byte_8,0x0C219C99},	//Mo44
	{MoDisable,ExtendID,Byte_8,0x0CFD0147},	//Mo45
	{MoDisable,ExtendID,Byte_8,0x1810969C},	//Mo46
	{MoDisable,ExtendID,Byte_8,0x1807989C},	//Mo47
	{MoDisable,ExtendID,Byte_8,0x18139C96},	//Mo48
	{MoDisable,ExtendID,Byte_8,0x18129C96},	//Mo49
	{MoDisable,ExtendID,Byte_8,0x18119C96},	//Mo50
	{MoDisable,ExtendID,Byte_8,0x18FE521E},	//Mo51
	{MoDisable,ExtendID,Byte_8,0x0C229C99},	//Mo52
	{MoDisable,ExtendID,Byte_8,0x0C239C99},	//Mo53
	{MoDisable,ExtendID,Byte_8,0x0C249C99},	//Mo54
	{MoDisable,ExtendID,Byte_8,0x0C259C99},	//Mo55
	{MoDisable,ExtendID,Byte_8,0x0C269C99},	//Mo56
	{MoDisable,ExtendID,Byte_8,0x18EA0021},	//Mo57
	{MoDisable,ExtendID,Byte_8,0x18EA0021},	//Mo58
	{MoDisable,ExtendID,Byte_8,0x18EA0021},	//Mo59
};


const GPRS_Perioid GPRSSend_Perioid = _2s;
const SD_Perioid SEREC_Perioid = _100ms;



